﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using Dict.Dao;
using Dict.DataModel;

namespace Dict.Blo
{
    public class DictHeroGetBlo
    {

        //获取掉落某物品的所有mission
        public static string GetFallSthWayList(string objId)
        {
            foreach (var mission in Dict.DictDataManager.Instance.tableHeroGetDao.CacheList)
            {
                if (mission.heroID.CompareTo(objId) == 0)
                {
                    return mission.heroGet;
                }
            }
            Debug.LogError("Id没找到：" + objId);
            return "";
        }  
    }

    public class DictItemGetBlo
    {

        //获取掉落某物品的所有mission
        public static string GetFallSthWayList(string objId)
        {
            foreach (var mission in Dict.DictDataManager.Instance.tableItemGetDao.CacheList)
            {
                if (mission.itemId.CompareTo(objId) == 0)
                {
                    return mission.ItemGet;
                }
            }
            Debug.LogError("Id没找到：" + objId);
            return "";
        }
    }
}
